﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using RTW.Servers;
using RTW.Web.Comm;

namespace RTW.Web.Areas.System.Controllers
{
    [Area("System")]
    public class SysLogController : CommController
    {
        SysLogServer _syslogServer;
        public SysLogController()
        {
            _syslogServer = new SysLogServer();
        }



        public IActionResult Index()
        {
            return View();
        }


        public async Task<IActionResult> GetSysLogForJson()
        {
            var success = await _syslogServer.GetSysLogForJson(UserAccount == "admin" ? null : UserDMID);
         var sss= Json(success);
            return sss;
        }
    }
}